<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 花色数组
    let suits = ["黑桃", "红心", "梅花", "方块"];
    // 点数数组
    let points = [];
    // 循环放入点数
    for (let i = 1;i <= 13;i ++) {
        points.push(i);
    }

    // 结果数组
    let result = [];

    // 采用双层for循环，排列出所有的花色和点数组合，放入结果数组中
    for (let s = 0; s < suits.length; s++) {
        for (let i = 1; i <= 13; i++) {
            result.push({ point: i, suit: suits[s] });
        }
    }
    console.log(result);

</script>

</html>